package contegor.scire.core;

/**
 * {@link ReturnPoint} decorator only for error handling.
 *
 * @version $Revision$
 * @author  Héctor Cirbián Pousa ($Author$)
 */
@Version("$Id$")
public class ReturnPointDecoratorForErrorsHandling<T> extends ReturnPointAdapter<T> {

  protected ReturnPoint<?> decorated;

  public ReturnPointDecoratorForErrorsHandling(ReturnPoint<?> decorated) {
    super();
    this.decorated = decorated;
  }
 
  @Override
  public void manage(TaskId taskId, Exception exception) {
    this.decorated.manage(taskId, exception);
  }
}
